import request from '@/utils/requestA'

export const listBorrower = (search) =>
    request({
        url: '/borrower',
        method: 'get',
        params: {
            keyword: search.keyword,
            pageNum: search.pageNum,
            limit: search.limit
        }
    })
    export const findBorrower = () =>
    request({
        url: '/borrower/t',
        method: 'delete'
    })
export const approval = (borrowerApproval) => {
    return request({
        url: '/borrower/approval',
        method: 'post',
        data: borrowerApproval
    })
}
export const saveBorrower = (borrower) => {
    return request({
        url: `/borrower`,
        method: 'post',
        data: borrower
    })
}